package com.edais.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.persistence.WxEnjoyMapper;


@Repository

public class WxEnjoyDao {
	@Autowired
	private WxEnjoyMapper wxEnjoyMapper;

	/**
	 * @param id
	 * @return
	 */
	public String getFaceValueById(Integer id) throws Exception{
		return wxEnjoyMapper.getFaceValueById(id);
	}

	public int updatePoundageCoupon(Integer id) throws Exception{
		// TODO Auto-generated method stub
		return wxEnjoyMapper.updatePoundageCoupon(id);
	}

	public Map<String, Object> getPoundageCouponById(Integer id) throws Exception{
		// TODO Auto-generated method stub
		return wxEnjoyMapper.getPoundageCouponById(id);
	}
}
